def fib(index):
    n,a,b=0,0,1
    while n<index:
        yield b
        a,b=b,a+b
        n+=1
for i in fib(10):
    print(i)